<%@ page import="com.workmanager.service.TeacherWorkService" %>
<%@ page import="com.workmanager.util.springUtil" %>
<%@ page import="java.util.List" %>
<%@ page import="com.workmanager.bean.*" %>
<%@ page import="com.alibaba.druid.util.StringUtils" %><%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2016/8/23
  Time: 15:39
 作业明细页面
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/top.jsp"%>
<%--<script src="http://o.qcloud.com/static_api/v3/assets/js/jquery-1.10.2.min.js"></script>--%>
<script src="<%=ctxpath%>/static/v3/assets/js/jPages.js"></script>
<script src="<%=ctxpath%>/static/teacher/js/workDetail.js"></script>
<link href="<%=ctxpath%>/static/teacher/css/workDetail.css" rel="stylesheet" />
   <%
       String jobTaskId = (String)request.getAttribute("jobTaskId");
       ClassJobTaskBean work = (ClassJobTaskBean)request.getAttribute("work");
       int totalUnReport = (Integer)request.getAttribute("totalUnReport");
    %>
<div class="panel panel-default table7_demo">
    <div class="panel-heading">
        <span style="font-size: 16px;font-weight:bolder;">作业明细表</span>
    </div>
    <div class="info">
        <div class="div">
            <span class="info">作业编号：</span>
            <span class="info" id="jobTaskId"><%=jobTaskId%></span>
            <span class="info"> 班级名称：</span>
            <span class="info"><%=work.getaClass().getClass_name()%></span>
            <span class="info">发布日期：</span>
            <%
                String[] a = work.getaJobTask().getJobTask_reportTime().split(" ");
            %>
            <span class="info"><%=a[0]%></span>
        </div>
        <div class="div">
            <span class="info">已交人数：</span>
            <span class="info" id="totalReport"></span>
            <span class="info">未交人数：</span>
            <span class="info"><%=totalUnReport%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            <span>截止日期：</span>
            <%
              String []  b = work.getaJobTask().getJobTask_deadline().split(" ");
            %>
            <span class="info"><%=b[0]%></span>
        </div>
    </div>
    <hr />
    <div id="table_demo3">
        <!-- 带操作按钮表格-3 Start -->
        <table class="table table-hover mb0" id="datas">
            <thead>
            <tr>
                <th>&nbsp;&nbsp;</th>
                <th>上交时间</th>
                <th>学生姓名</th>
                <th>作业标题</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody id="data">
            </tbody>
            <tfoot>
            <tr>
                <td colspan="5">
                    <div class="pull-right king-page-box">
                        <p class="pull-left mt15">共<span id="total"></span>条记录，当前第<span id="cur_page">1</span>/<span id="total_page">2</span>页</p>
                        <div class="holder pull-right ml15">
                            <div class="king-jP"><a class="jp-previous jp-disabled">«</a><a class="jp-current">1</a><span class="jp-hidden">...</span><a href="#" class="">2</a><span class="jp-hidden">...</span><a>3</a><a class="jp-next">»</a></div>
                        </div>
                    </div>
                </td>
            </tr>
            </tfoot>
        </table>
        <!-- 带操作按钮表格-3 End -->
    </div>

</div>
<%@include file="../inc/bottom.jsp"%>
